CC=gcc
CFLAGS=-Wall -pedantic -DPOSIX=1 -DNB_TASKS=1
PO_HI_SRC=../../../src/
PO_HI_INCLUDE=../../../include/

all: test-periodic test-sporadic

test-periodic:
	$(CC) $(CFLAGS) -o test-periodic -lpthread -lrt test-periodic.c \
					$(PO_HI_SRC)/po_hi_task.c $(PO_HI_SRC)/po_hi_time.c -I$(PO_HI_INCLUDE) -I. -D__PO_HI_NB_TASKS=1

test-sporadic:
	$(CC) $(CFLAGS) -o test-sporadic -lpthread -lrt test-sporadic.c \
					$(PO_HI_SRC)/po_hi_task.c $(PO_HI_SRC)/po_hi_time.c -I$(PO_HI_INCLUDE) -I. -D__PO_HI_NB_TASKS=2

clean:
	rm -f test-periodic test-sporadic *~
